package com.xx.pmis.services;

import java.util.List;

import com.xx.pmis.model.Write;

public interface WriteService {
	public void saveOrUpdateWrite(Write write) throws Exception;
	public void saveWrite(Write write) throws Exception;
	public void deleteWrite(Write write) throws Exception;
	// 根据文章ID查询该文章
	public Write getWriteByWriteID(String writeID) throws Exception;    
	// 查询所有文章
	public List<Write> getAllWrite() throws Exception;
	// 查询所有文章，分页显示
	public List<Write> getAllWriteByPage(int currentPage, int lineSize) throws Exception;
	// 文章数
	public int getCountOfWrite() throws Exception;


}
